package cn.hn3l.agriculture.entitis;

import javax.validation.constraints.Size;

/**
 * @Author Wang Weiwei
 * @Since 16-10-15
 * @Describe
 */
public class User {
    private int id;
    @Size(min = 6,max = 20,message = "用户名的长度必须在6-20")
    private String username;
    @Size(min = 6,max = 20,message = "密码的长度必须在6-20")
    private String password;

    public User(int id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }
    public User(){}


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
